
<form  id="serach_from"  action="{% url 'server_hardinfo' %}?option=search" class="form-inline" role="form" method="POST" >
  <input type="hidden" name="csrfmiddlewaretoken" value="{{csrf_token}}">

        {% for field in search_form %}
          <label for={{ field.label }} >{{ field.label }}</label>
        {{ field }} 
         {{ field.errors }}
     {% endfor %}
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <button id="serach_btn" type="submit" class="btn btn-default" >查询</button>
<button id="serach_btn" type="submit" class="btn btn-default">返回</button>
</form>

